//
//  UILabel+Extension.swift
//  Weibo1
//
//  Created by apple on 15/12/28.
//  Copyright © 2015年 idcast. All rights reserved.
//

import UIKit

extension UILabel {

  ///便利构造函数
    convenience init(title: String, fontSize: CGFloat = 14, color: UIColor = UIColor.darkGrayColor()) {
    
        self.init()
        
        text = title
        
        //界面设计上 避免使用纯黑色
        textColor = color
        font = UIFont.systemFontOfSize(fontSize)
        numberOfLines = 0
        textAlignment = NSTextAlignment.Center
        
        
    }
}
